package com.ruoyi.datastatistics.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseDO;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 大-历史数据对象 t_terminal_history_data
 *
 * @author ruoyi
 * @date 2023-09-06
 */
@TableName("t_terminal_history_data")
@Data
public class TerminalHistoryData implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 平台表单自增主键
     */
    @TableId
    private Long id;

    /**
     * 设备归属水司
     */
    @TableField("tenant_id")
    private String tenantId;

//    @Excel(name = "设备名称")
    @TableField(exist = false)
    private String terminalName;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    @TableField("terminal_id")
    private String terminalId;

    /**
     * 累计流量
     */
    @Excel(name = "累计流量(m³)")
    @TableField("total_flow")
    private BigDecimal totalFlow;

    /**
     * 正向读数
     */
    @Excel(name = "正向流量(m³)")
    @TableField("read_number")
    private BigDecimal readNumber;

    /**
     * 反向读数
     */
    @Excel(name = "反向流量(m³)")
    @TableField("reverse_number")
    private BigDecimal reverseNumber;

    /**
     * 瞬时流量
     */
    @Excel(name = "瞬时流量(m³/h)")
    @TableField("instant_number")
    private BigDecimal instantNumber;

    /**
     * 管网压力
     */
    @Excel(name = "管网压力(MPA)")
    @TableField("pressure")
    private BigDecimal pressure;

    /**
     * 终端电压
     */
    @Excel(name = "设备电压(V)")
    @TableField("terminal_vol")
    private BigDecimal terminalVol;

    /**
     * 终端信号强度
     */
    @Excel(name = "终端信号强度(dBm)")
    @TableField("terminal_csq")
    private Long terminalCsq;


    /**
     * 抄表时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "抄表时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField("read_date")
    private Date readDate;

    /**
     * 位置识别编号
     */
    @TableField("location_nb")
    private String locationNb;

    /**
     * 瞬时流速
     */
    @TableField("instant_velocity")
    private BigDecimal instantVelocity;

    /**
     * 信号描述
     */
    @TableField("terminal_csq_describe")
    private String terminalCsqDescribe;

    /**
     * 阀门状态
     */
    @TableField("valve_state")
    private Long valveState;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;

    /**
     * 累计流量
     */
    // @Excel(name = "累计流量(m³)")
    @TableField("total_flow_s")
    private BigDecimal totalFlowS;



}
